import { Point3D } from '@/RoomDesign/application/dto/Point3D'
import { enClassName } from '../../global/enumHelper'
import { BaseObject } from './BaseObject'

/**
 * 变换配置
 */
export class TransformConfig extends BaseObject {
  className = enClassName.TransformConfig
  position: Point3D
  rotation: Point3D
  scale: Point3D

  constructor(position?: Point3D, rotation?: Point3D, scale?: Point3D) {
    super()
    this.position = position || new Point3D(0, 0, 0)
    this.rotation = rotation || new Point3D(0, 0, 0)
    this.scale = scale || new Point3D(1, 1, 1)
  }
}
